package com.oa.config;

import com.oa.interceptor.UserInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @name web配置类
 * @author Yang
 * @date 2018-06-12
 * @version 1.0.1
 */
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
    /*    registry.addInterceptor(new UserInterceptor()).addPathPatterns("/manage/**");*/
        super.addInterceptors(registry);
    }
}
